<div class="body-cont">
  <div class="col-9 row">
    <h1>Tất cả dự án </h1>
    <b class="social-top">
            <a href="#"><img src="<?php echo Yii::app()->request->baseUrl; ?>/themes/bjoco/images/soc_01.png" /></a><a href="#"><img src="<?php echo Yii::app()->request->baseUrl; ?>/themes/bjoco/images/soc_03.png" /></a><a href="#"><img src="<?php echo Yii::app()->request->baseUrl; ?>/themes/bjoco/images/soc_05.png" /></a><a href="#"><img src="<?php echo Yii::app()->request->baseUrl; ?>/themes/bjoco/images/soc_07.png" /></a>
        </b>
    <h2>Tìm kiếm dự án</h2>
    <form id="form-search" onsubmit="return false" onkeypress="if(event.keyCode == 13){ alert('I am an alert box!');return false; } else return true;">
    <input name="input-search" value="" type="edit" style="width:400px; display:block; padding:3px;">
    <?php  echo CHtml::button("Tìm kiếm",array(
                    'onclick'=>CHtml::ajax(array(
                                'url'=>Yii::app()->controller->createUrl('show/search'),
                                'type'=>'post',
                                'update'=>'#div_search',
                                'data'=>"js:$('#form-search').serialize()"
                                ))
                        )
                              ); 
            echo '[ '.CHtml::link('Advanced Search',Yii::app()->createUrl('job/search/advanced'),array('style'=>'color: #199ADC;
    text-decoration: none;
    cursor: pointer;')).' ]';
                              ?>
     </form>
    
    <div class="mod">
        <div id = "div_search">
    <div class="mod-tit"><a href="#">Công việc</a></div>
            <div class=" mod-cont">
                <div class="table">
                    <table cellpadding="3" cellspacing="3" border="0" width="100%">
                    <tr>
                    <th width="20%">Tên công việc</th>
                    <th width="20%">Thể loại</th>
                    <th width="10%">Giá</th>
                    <th width="20%">Tình trạng</th>
                    <th width="20%">Yêu cầu kĩ năng</th>
                    <th  width="10%">Kết thúc</th>
                </tr>
                </table>
                </div>
        <?php $this->widget('zii.widgets.CListView', array(
    'dataProvider'=>$dataProvider,
    'itemView'=>'_view',
     'summaryText'=>"<span class='results1'>Kết quả từ {start} đến {end}</span>"
    )); ?>
    </div>
    </div>
    </div>
</div>
<div class="col-3 row">
    <div class="clr"></div>
    <div class="clr"></div>
        <div class="pb3">
            <div class="box-2">
                <div class="title p5">
                    <strong class="fcOrange pl15">Tìm theo thể loại</strong>
                </div>
                <div class="p10 list-3">

                            <ul class="pl10">
                            <?php foreach ($jobtype as $key ): ?>
                            <li><a href="
                                <?php echo Yii::app()->controller->createUrl('/job/show/type&j='.$key->id).'&b=0';
                            ?>" title=""><?php echo $key->name; ?></a>(<?php echo Yii::app()->getModule('job')->getCountJobType($key->id); ?>)</li>
                            <?php endforeach; ?>
                            </ul>
                            <p class="talignr">
                                <a id="lnkMoreMan" href="javascript:{}">Xem thêm</a>
                            </p>

                </div>
            </div>
        </div>

        <div id="ctl26_ctl06_rptPC_ctl00_pnlFilter">

            <div id="ctl26_ctl06_rptPC_ctl00_pnlPrice">

                <div class="mt10 pb3">
                    <div class="box-2">
                        <div class="title p5">
                            <strong class="fcOrange pl15">Tìm theo giá</strong>
                        </div>
                        <div class="p10 list-3">
                            <ul class="pl10">
                                <?php foreach ($budget as $key):
                                 $currency = $key->currency->currency;?>
                                <li><a href="<?php  echo Yii::app()->controller->createUrl('/job/show/type&j=0').'&b='.$key->id;
                            ?>" title=""><?php echo $key->details."($key->minmoney-$key->maxmoney $currency)"; ?></a> </li>
                            <?php endforeach; ?>
                            </ul>
                        </div>
                    </div>
                </div>

                    </div>
                </div>
            </div>
    </div><div class="clr"></div>